package com.lnsf.bookstore.web.collection.service.impl;

import com.lnsf.bookstore.web.collection.dao.ApiCollectMapper;
import com.lnsf.bookstore.web.collection.service.ApiCollectService;
import com.lnsf.bookstore.web.collection.vo.ApiCollect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApiCollectServiceImpl implements ApiCollectService{

    @Autowired
    private ApiCollectMapper collectMapper;


    @Override
    public int delete(Integer id) {
        return collectMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<ApiCollect> queryList(Map<String, Object> map) {
        return collectMapper.queryList(map);
    }

    @Override
    public int insert(ApiCollect apiCollect) {
        return collectMapper.insert(apiCollect);
    }

    @Override
    public int update(ApiCollect apiCollect) {
        return collectMapper.update(apiCollect);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return collectMapper.queryTotal(map);
    }
}
